COL, COLGROUPNN n/a   IE 4   DOM n/a

The COL object reflects the COL element; the COLGROUP object reflects the COLGROUP element. Both elements provide ways of assigning multiple adjacent columns to groups for convenience in assigning styles, widths, and other visual treatments.

 
HTML Equivalent
<COL>
<COLGROUP>
 
Object Model Reference
IE [window.]document.all.elementID
alignNN n/a   IE 4   DOM n/a
 Read/Write
 

Defines the horizontal alignment of content within cells covered by the COL or COLGROUP element.

 
Example
document.all.myCol.align = "center"
 
Value
Any of the three horizontal alignment constants: center | left | right.
 
Default left
spanNN n/a   IE 4   DOM n/a
 Read/Write
 

The number of adjacent columns for which the element's attribute and style settings apply.

 
Example
document.all.myColgroup.span = 2
 
Value
Positive integer.
 
Default 1
vAlignNN n/a   IE 4   DOM n/a
 Read/Write
 

The manner of vertical alignment of text within the column grouping's cells.

 
Example
document.all.myCol.vAlign = "baseline"
 
Value
Case-insensitive constant (as a string): baseline | bottom | middle | top.
 
Default middle
widthNN n/a   IE 4   DOM n/a
 Read/Write
 

The width in pixels of each column of the column grouping. Changes to these values are immediately reflected in reflowed content on the page.

 
Example
document.all.myColgroup.width = 150
 
Value
Integer.
 
Default None.